package com.ego.order.service;

import com.ego.order.pojo.Order;
import com.ego.pojo.vo.ResultVO;

/**
 * @author Ares
 */
public interface OrderService {

    void createOrder(Order order);

    String generateUrl(Long orderId);

    void submitSeckillOrder(String orderId, Long skuId, Long price, Long userId);

    Boolean checkSeckillOrder(Long orderId);

    ResultVO<Order> selectOrderPage(Integer page, Integer rows);

    ResultVO<Order> selectStatusOrderPage(Integer status, Integer page, Integer rows);

    Integer cancelOrder(Long orderId);

}
